gpsbabel -i gdb,via -f ${REFERENCE}/gdb-sample.gdb -o gpx -F ${TMPDIR}/gdb-sample.gpx
compare ${REFERENCE}/gdb-sample.gpx ${TMPDIR}/gdb-sample.gpx
gpsbabel -i gpx -f ${REFERENCE}/gdb-sample.gpx -o gdb,ver=1 -F ${TMPDIR}/gdb-sample.gdb
-gpsbabel -i gdb -f ${TMPDIR}/gdb-sample.gdb -o gpx -F ${TMPDIR}/gdb-sample.gpx
+gpsbabel -i gdb -f ${TMPDIR}/gdb-sample.gdb -o gpx -F ${TMPDIR}/gdb-sample_v2.gpx
gpsbabel -i gdb,via -f ${REFERENCE}/gdb-sample-v3.gdb -o gpx -F ${TMPDIR}/gdb-sample_v3.gpx
compare ${REFERENCE}/gdb-sample.gpx ${TMPDIR}/gdb-sample_v3.gpx
#
# Because of Garmin coordinates storage gpx is not good for this test
-# compare ${REFERENCE}/gdb-sample.gpx ${TMPDIR}/gdb-sample.gpx
-#
-# compare ${TMPDIR}/gdb-sample.gpx ${REFERENCE}/gdb-sample.gpx
+# compare ${REFERENCE}/gdb-sample.gpx ${TMPDIR}/gdb-sample_v2.gpx
#
# Vito Navigator II .smt tests
#
# WBT-201 tests
#
-rm -f ${TMPDIR}/wbt-200.*
+rm -f ${TMPDIR}/wbt-201.*
gpsbabel -t -w -i wbt-bin -f ${REFERENCE}/wbt-201.tk1 -o gpx -F ${TMPDIR}/wbt-201.gpx
# Remove the timestamp
grep -v time <${TMPDIR}/wbt-201.gpx >${TMPDIR}/wbt-201.gpx2
compare ${REFERENCE}/igc1_3d.out ${TMPDIR}/igc_sed.out
-gpsbabel -i igc -f ${REFERENCE}/igc2.igc -o gpx -F ${TMPDIR}/igc.gpx
-compare ${REFERENCE}/igc2_gpx.out ${TMPDIR}/igc.gpx
+gpsbabel -i igc -f ${REFERENCE}/igc2.igc -o gpx -F ${TMPDIR}/igc2~igc.gpx
+compare ${REFERENCE}/igc2_gpx.out ${TMPDIR}/igc2~igc.gpx
-gpsbabel -i gpx -f ${TMPDIR}/igc.gpx -o igc -F ${TMPDIR}/igc.out
-sed '/^LXXXGenerated by GPSBabel Version/d' ${TMPDIR}/igc.out > ${TMPDIR}/igc_sed.out
-compare ${REFERENCE}/igc2_igc.out ${TMPDIR}/igc_sed.out
+gpsbabel -i gpx -f ${TMPDIR}/igc2~igc.gpx -o igc -F ${TMPDIR}/igc2~igc~gpx.out
+sed '/^LXXXGenerated by GPSBabel Version/d' ${TMPDIR}/igc2~igc~gpx.out > ${TMPDIR}/igc2~igc~gpx_sed.out
+compare ${REFERENCE}/igc2_igc.out ${TMPDIR}/igc2~igc~gpx_sed.out
-gpsbabel -i igc -f ${TMPDIR}/igc.out -o gpx -F ${TMPDIR}/igc.gpx
-compare ${REFERENCE}/igc2_gpx.out ${TMPDIR}/igc.gpx
+gpsbabel -i igc -f ${TMPDIR}/igc2~igc~gpx.out -o gpx -F ${TMPDIR}/igc2~igc~gpx~igc.gpx
+compare ${REFERENCE}/igc2_gpx.out ${TMPDIR}/igc2~igc~gpx~igc.gpx
rm -f ${TMPDIR}/motoactv.*
-gpsbabel -i motoactv -f ${REFERENCE}/track/motoactv.csv -o gpx -F ${TMPDIR}/lowranceusr4.gpx
-compare ${REFERENCE}/track/motoactv~gpx.gpx ${TMPDIR}/lowranceusr4.gpx
+gpsbabel -i motoactv -f ${REFERENCE}/track/motoactv.csv -o gpx -F ${TMPDIR}/motoactv~csv.gpx
+compare ${REFERENCE}/track/motoactv~gpx.gpx ${TMPDIR}/motoactv~csv.gpx
#
# Transformation filter (transform) tests
#
-rm -f ${TMPDIR}/transform*
+rm -f ${TMPDIR}/transform-rte.gpx
gpsbabel -i gpx -f ${REFERENCE}/expertgps.gpx -x nuketypes,routes,tracks -x transform,rte=wpt,del=y -o gpx,gpxver=1.1 -F ${TMPDIR}/transform-rte.gpx
compare ${REFERENCE}/transform-rte.gpx ${TMPDIR}/transform-rte.gpx
+
+rm -f ${TMPDIR}/transform-wpt.gpx
gpsbabel -i gpx -f ${REFERENCE}/expertgps.gpx -x nuketypes,waypoints,tracks -x transform,wpt=rte,del=y -o gpx,gpxver=1.1 -F ${TMPDIR}/transform-wpt.gpx
compare ${REFERENCE}/transform-wpt.gpx ${TMPDIR}/transform-wpt.gpx